package com.jason.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.annotation.Bean;

import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;

@SpringBootApplication
public class SpringbootCaseFastjsonApplication {

	@Bean
	public HttpMessageConverters fHttpMessageConverters() {
		return new HttpMessageConverters(new FastJsonHttpMessageConverter());
	}
	
	public static void main(String[] args) {
		SpringApplication.run(SpringbootCaseFastjsonApplication.class, args);
	}
}
